{include file="public/header" /}  
        <!-- Start right content -->
        <div class="content-page">
            <!-- ============================================================== -->
            <!-- Start Content here -->
            <!-- ============================================================== -->
            <div class="content">
                                <!-- Page Heading Start -->
                <div class="page-heading">
                    <h1>用户编辑</h1>
                                    </div>
                <!-- Page Heading End-->
                <div class="row">
                    <div class="col-sm-12 portlets">
                        <div class="widget">
                            <div class="widget-header transparent">
                                <h2><strong>用户</strong> 编辑</h2>
                                <div class="additional-btn">
                                    <a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
                                    <a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
                                    <a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
                                </div>
                            </div>
                            <div class="col-sm-8 portlets">
                                <div class="widget-content padding">
                                    <form action="{:url('admin/user/doEdit',['id'=>$user['id']])}" enctype="multipart/form-data" method="post" role="form" id="registerForm">
                                      <div class="form-group">
                                        <label>头像</label>
                                        <div class="col-sm-12 form-group">
                                            <img src="/uploads/{$user['ico']}" alt="" height="100" width="100" style="border-radius:50px">
                                            <input type="file" name="ico" />
                                        </div>
                                      </div>
                                      <div class="form-group">
                                        <label>用户名</label>
                                        <input type="text" class="form-control" name="name" value="{$user['name']}">
                                      </div>
                                      <div class="form-group">
                                        <label>手机号</label>
                                        <input type="text" class="form-control" name="tel" maxlength="11" value="{$user['tel']}">
                                      </div>
                                      <div class="form-group">
                                        <div class="row">
                                            <div class="col-sm-6">
                                                <label>密码</label>
                                                <input id="password" type="password" class="form-control" name="pass" value="{$user['pass']}">
                                            </div>
                                            <div class="col-sm-6">
                                                <label>确认密码</label>
                                                <input type="password" class="form-control" name="rpass">
                                            </div>
                                        </div>
                                      </div>
                                      <div class="form-group">
                                        <label>性别</label>
                                        <div class="col-sm-12 form-group">
                                        {if condition="$userdetails['sex'] == 0"}
                                            <label><input type="radio" class="form-control" name="sex" value="0" checked>保密&nbsp;</label>
                                            <label><input type="radio" class="form-control" name="sex" value="1" >男&nbsp;</label>
                                            <label><input type="radio" class="form-control" name="sex" value="2" >女</label>
                                        {elseif condition="$userdetails['sex'] == 1"/}
                                            <label><input type="radio" class="form-control" name="sex" value="0">保密&nbsp;</label>
                                            <label><input type="radio" class="form-control" name="sex" value="1" checked>男&nbsp;</label>
                                            <label><input type="radio" class="form-control" name="sex" value="2" >女</label>
                                        {else/}
                                            <label><input type="radio" class="form-control" name="sex" value="0">保密&nbsp;</label>
                                            <label><input type="radio" class="form-control" name="sex" value="1" >男&nbsp;</label>
                                            <label><input type="radio" class="form-control" name="sex" value="2" checked>女</label>
                                        {/if}
                                        </div>
                                      </div>
                                      <div class="form-group">
                                        <label>年龄</label>
                                        <input type="text" class="form-control" name="age" value="{$userdetails['age']}">
                                      </div>
                                      <div class="form-group">
                                        <label>地址</label>
                                        <input type="text" class="form-control" name="address" value="{$userdetails['address']}">
                                      </div>
                                      <div class="form-group">
                                        <label>积分</label>
                                        <input type="text" class="form-control" name="ntegral" value="{$userdetails['ntegral']}">
                                      </div>
                                      <div class="form-group">
                                        <label>状态</label>
                                        <div class="col-sm-12 form-group">
                                        {if condition="$user['status'] == 0"}
                                            <label><input type="radio" class="form-control" name="status" value="1" >启用&nbsp;</label>
                                            <label><input type="radio" class="form-control" name="status" value="0" checked>禁用</label>
                                        {else/}
                                            <label><input type="radio" class="form-control" name="status" value="1" checked>启用&nbsp;</label>
                                            <label><input type="radio" class="form-control" name="status" value="0">禁用</label>
                                        {/if}
                                        </div>
                                      </div>
                                      <button type="submit" class="btn btn-primary">提交</button>
                                    </form>
                                </div>
                            </div>

                        </div>
                        
                    </div>
                    
                </div>
                
                            <!-- Footer Start -->

{include file="public/footer" /}
